<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function setGetParams(field,val){
            var url = new URL(window.location.href);
            params = new URLSearchParams(url.search);
            params.set(field,val);
            return params.toString();
        }
    </script>
</head>
<body>

</body>
</html>